package com.cy.test.test;

public class Animal {
    int a = 5;
    private String name;
    private int age;
    private String color;

    public void setColor(String color) {
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
        public void play() {
            System.out.println("发出声音");
        }
    }

}